package yx.model;

import java.sql.Timestamp;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsCorporation entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_corporation", catalog = "")
public class BsCorporation implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer version;
	private String corporationName;
	private String contactPerson;
	private String email;
	private String phone;
	private String fax;
	private String corporationType;
	private String region;
	private String industry;
	private String parentName;
	private String taxCert;
	private String legalPerson;
	private Date regDate;
	private Long regCapital;
	private String regAddress;
	private String officeAddress;
	private String postcode;
	private String website;
	private String introduction;
	private String memo;
	private String rootFlag;
	private String deleteFlag;
	private Integer optId;
	private Timestamp optTime;

	// Constructors

	/** default constructor */
	public BsCorporation() {
	}

	/** full constructor */
	public BsCorporation(String corporationName, String contactPerson, String email, String phone, String fax, String corporationType, String region, String industry, String parentName, String taxCert, String legalPerson, Date regDate, Long regCapital, String regAddress, String officeAddress, String postcode, String website, String introduction, String memo, String rootFlag, String deleteFlag, Integer optId, Timestamp optTime) {
		this.corporationName = corporationName;
		this.contactPerson = contactPerson;
		this.email = email;
		this.phone = phone;
		this.fax = fax;
		this.corporationType = corporationType;
		this.region = region;
		this.industry = industry;
		this.parentName = parentName;
		this.taxCert = taxCert;
		this.legalPerson = legalPerson;
		this.regDate = regDate;
		this.regCapital = regCapital;
		this.regAddress = regAddress;
		this.officeAddress = officeAddress;
		this.postcode = postcode;
		this.website = website;
		this.introduction = introduction;
		this.memo = memo;
		this.rootFlag = rootFlag;
		this.deleteFlag = deleteFlag;
		this.optId = optId;
		this.optTime = optTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Version
	@Column(name = "VERSION")
	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "CORPORATION_NAME", length = 128)
	public String getCorporationName() {
		return this.corporationName;
	}

	public void setCorporationName(String corporationName) {
		this.corporationName = corporationName;
	}

	@Column(name = "CONTACT_PERSON", length = 32)
	public String getContactPerson() {
		return this.contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	@Column(name = "EMAIL", length = 64)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "PHONE", length = 32)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "FAX", length = 32)
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "CORPORATION_TYPE")
	public String getCorporationType() {
		return this.corporationType;
	}

	public void setCorporationType(String corporationType) {
		this.corporationType = corporationType;
	}

	@Column(name = "REGION", length = 32)
	public String getRegion() {
		return this.region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	@Column(name = "INDUSTRY", length = 4)
	public String getIndustry() {
		return this.industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}

	@Column(name = "PARENT_NAME", length = 64)
	public String getParentName() {
		return this.parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	@Column(name = "TAX_CERT", length = 32)
	public String getTaxCert() {
		return this.taxCert;
	}

	public void setTaxCert(String taxCert) {
		this.taxCert = taxCert;
	}

	@Column(name = "LEGAL_PERSON", length = 32)
	public String getLegalPerson() {
		return this.legalPerson;
	}

	public void setLegalPerson(String legalPerson) {
		this.legalPerson = legalPerson;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "REG_DATE", length = 10)
	public Date getRegDate() {
		return this.regDate;
	}

	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

	@Column(name = "REG_CAPITAL")
	public Long getRegCapital() {
		return this.regCapital;
	}

	public void setRegCapital(Long regCapital) {
		this.regCapital = regCapital;
	}

	@Column(name = "REG_ADDRESS")
	public String getRegAddress() {
		return this.regAddress;
	}

	public void setRegAddress(String regAddress) {
		this.regAddress = regAddress;
	}

	@Column(name = "OFFICE_ADDRESS")
	public String getOfficeAddress() {
		return this.officeAddress;
	}

	public void setOfficeAddress(String officeAddress) {
		this.officeAddress = officeAddress;
	}

	@Column(name = "POSTCODE", length = 6)
	public String getPostcode() {
		return this.postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	@Column(name = "WEBSITE")
	public String getWebsite() {
		return this.website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	@Column(name = "INTRODUCTION")
	public String getIntroduction() {
		return this.introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	@Column(name = "MEMO", length = 128)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Column(name = "ROOT_FLAG", length = 1)
	public String getRootFlag() {
		return this.rootFlag;
	}

	public void setRootFlag(String rootFlag) {
		this.rootFlag = rootFlag;
	}

	@Column(name = "DELETE_FLAG", length = 1)
	public String getDeleteFlag() {
		return this.deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Column(name = "OPT_ID")
	public Integer getOptId() {
		return this.optId;
	}

	public void setOptId(Integer optId) {
		this.optId = optId;
	}

	@Column(name = "OPT_TIME", length = 19)
	public Timestamp getOptTime() {
		return this.optTime;
	}

	public void setOptTime(Timestamp optTime) {
		this.optTime = optTime;
	}

}